package com.lj.shop.system;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson2.JSONObject;


@RestController
public class UserConroller {
    
    
    @PostMapping("/login")
    public ResponseEntity<JSONObject> login(){
        JSONObject user = new JSONObject();
        user.put("name", "admin");
        user.put("id", "1");
        user.put("token", "sssdfsdfsdfad");
        return ResponseEntity.ok(user);
    }

}
